import {post_json,get,post} from '../../http/axios'
export default{
    namespaced:true,
    state:{
        customerById:{}
    },
    getters:{},
    mutations:{
        setCustomerById(state,data){
            state.customerById=data
        }
    },
    actions:{
        async findCustomer(context,params){
            let res = await get('/customer/findCustomerById?id='+params)
            context.commit('setCustomerById',res.data)
        },
        async toRecharge(context,params){
            let res = await get('/customer/recharge?'+params)
        }
    }
}